﻿public class ThrowAstTree : LuaAstTree
{
    public LuaAstTree Exception { get; }
    public ThrowAstTree(LuaAstTree exception)
    {
        Exception = exception;
    }
    public override void WriteTo(ICodeWriter writer)
    {
        writer.Code("throw(");
        Exception.WriteTo(writer);
        writer.Code(")");
    }
}
